import request from '@/utils/request'

// 查询配送员周期列表
export function listRiderCycle(query) {
  return request({
    url: '/rider/riderCycle/list',
    method: 'get',
    params: query
  })
}

// 查询配送员周期详细
export function getRiderCycle(id) {
  return request({
    url: '/rider/riderCycle/' + id,
    method: 'get'
  })
}

// 新增配送员周期
export function addRiderCycle(data) {
  return request({
    url: '/rider/riderCycle',
    method: 'post',
    data: data
  })
}

// 修改配送员周期
export function updateRiderCycle(data) {
  return request({
    url: '/rider/riderCycle',
    method: 'put',
    data: data
  })
}

// 删除配送员周期
export function delRiderCycle(id) {
  return request({
    url: '/rider/riderCycle/' + id,
    method: 'delete'
  })
}
